/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package controller;


import java.rmi.*;
import model.User;

/**
 *
 * @author mona
 */
public interface ClientInt extends Remote 
{
    public void receive(String friendUserName , String msg) throws RemoteException;
    public void receive(byte[] b) throws RemoteException ;
    public void receiveToConference(Integer confID , String friendUserName ,String msg) throws RemoteException;
    public void startConference(String[] usersNames,ClientInt[] users , int confId) throws RemoteException;
    public void updateFriendStatus(String userName , int status) throws RemoteException;
    public void checkFriendReqs() throws RemoteException;
    public void friendReqAccepted(User newFriend) throws RemoteException;
    public boolean startStream(String fileName,int fileSize,String friendName)throws RemoteException;
    public void closeStream(String filename)throws RemoteException;
    public void sendInteractive(String msg,String username) throws RemoteException;
    public void shutdown() throws RemoteException;
    public void receiveAd(String msg) throws RemoteException;
}

